#!/usr/bin/python3

import random

result = random.randint(1, 20)
guess = int(input('Guess a number from 1 to 20: '))

def print_result(guess):
    if(guess < result):
        print('Too low\n')
    else:
        print('Too high')

while guess != result:
    print_result(guess)
    guess = int(input('Guess a number from 1 to 20: '))
print('Good guess')